<template>
  <view>
    <test :title="title" @myEven="getNum"></test>
    这是子组件传递过来的数据{{num}}
  </view>
</template>

<script>
import test from '../../components/uni-calendar/test.vue'
import testA from '../../../components/a.vue'
import testB from '../../../components/b.vue'

export default {
  data() {
    return {
      title: 'Hello',
      name: 'linlinqi',
      num: 0,
      flag: true
    }
  },
  components: {
    test,
    "test-a": testA,
    "test-b": testB,
    uniCalendar
  },
  methods: {
    getNum(num) {
      console.log(num)
      this.num = num
    }
  }
}
</script>

<style>
</style>